import torch
from torchvision.models import resnet101

class ResNet101(torch.nn.Module):
    def __init__(self, num_classes=1000):
        super(ResNet101, self).__init__()
        self.model = resnet101(pretrained=True)
        self.model.fc = torch.nn.Linear(self.model.fc.in_features, num_classes)

    def forward(self, x):
        return self.model(x)
